package com.hjxr.sysadmin.zsj.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hjxr.framework.aspectj.lang.annotation.Excel;
import com.hjxr.sysadmin.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 页面图片对象 pagephoto
 *
 * @author ruoyi
 * @date 2021-03-09
 */
public class Pagephoto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 地址 */
    @Excel(name = "地址")
    private String addres;

    /** 页面所属 */
    @Excel(name = "页面所属")
    private String type;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 名称 */
    @Excel(name = "图片访问地址")
    private String photoaddres;

    /** 拼接访问地址 */
    @Excel(name = "拼接访问地址")
    private String realaddres;

    /** 顺序 */
    @Excel(name = "顺序")
    private Integer ordernum;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAddres(String addres)
    {
        this.addres = addres;
    }

    public String getAddres()
    {
        return addres;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhotoaddres(String photoaddres)
    {
        this.photoaddres = photoaddres;
    }

    public String getPhotoaddres()
    {
        return photoaddres;
    }
    public void setRealaddres(String realaddres)
    {
        this.realaddres = realaddres;
    }

    public String getRealaddres()
    {
        return realaddres;
    }
    public void setOrdernum(Integer ordernum)
    {
        this.ordernum = ordernum;
    }

    public Integer getOrdernum()
    {
        return ordernum;
    }
    public void setModifiedTime(Date modifiedTime)
    {
        this.modifiedTime = modifiedTime;
    }

    public Date getModifiedTime()
    {
        return modifiedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("addres", getAddres())
            .append("type", getType())
            .append("name", getName())
            .append("photoaddres", getPhotoaddres())
            .append("realaddres", getRealaddres())
            .append("ordernum", getOrdernum())
            .append("modifiedTime", getModifiedTime())
            .toString();
    }
}
